<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-goodsInfo-edit" th:object="${goodsInfo}">
            <input id="goodsId" name="goodsId" th:field="*{goodsId}"  type="hidden">
            <div class="form-group">
                <label class="col-sm-2 control-label">餐饮名称：</label>
                <div class="col-sm-9">
                    <label class="control-label" th:text="*{goodsName}"></label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">简介说明：</label>
                <div class="col-sm-9">
                    <label class="control-label" th:text="*{briefInformation}"></label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">类型：</label>
                <div class="col-sm-9">
                    <label class="control-label" id="goodsType" th:text="*{goodsType}"></label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">首图：</label>
                <div class="col-sm-9" >
                    <label class="control-label"><img th:src="*{imgUrl}" style="width: 300px;height: 180px;"></label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">原料：</label>
                <div class="col-sm-9">
                    <label class="control-label" th:text="*{attr1}"></label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">品牌：</label>
                <div class="col-sm-9">
                    <label class="control-label" th:text="*{attr2}"></label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">价格：</label>
                <div class="col-sm-9">
                    <label class="control-label" th:text="*{'￥'+goodsPrice}"></label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">库存：</label>
                <div class="col-sm-9">
                    <label class="control-label" th:text="*{goodsLeft}"></label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">详情：</label>
                <div class="col-sm-9">
                    <label class="control-label" th:utext="*{details}"></label>
                </div>
            </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script th:inline="javascript">
        var datas = [[${@dict.getType('goods_type_item')}]];
        $(function () {
            $("#goodsType").html($.table.selectDictLabel(datas, $("#goodsType").html()));
        });
    </script>
</body>
</html>
